import {axioslink} from "api/api.js"

export let Help={
    state: {
        Help:[],
    },
    mutations: {
        //处理数据的地方
        HelpInit(state,payload){
            state.Help=payload;
            console.log(state.Help)
        }
    },
    actions: {
        //使用Actions 进行异步操作（异步请求)
        Helpxaxios(context){

            console.log(12324335)
            axioslink("/Help/list","get").then((ok)=>{
                context.commit("HelpInit",ok.data.Help)
            })
        }
    }
}